package com.linhai.scm.service.user;

//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;

import com.linhai.scm.entity.UserInfoBean;
import com.linhai.scm.dao.BaseDao;

//@Service
public class UserInfoService {

	//@Autowired
    private BaseDao<UserInfoBean> baseDao;
	
	public UserInfoBean queryUserInfoById(String id) {
        return baseDao.load(UserInfoBean.class, id);
    }

    public void addUserInfo(UserInfoBean userInfo) {
        try {
        	userInfo.setId("1");
            userInfo.setAddress("32132");
            baseDao.save(userInfo);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
